package com.cxria.sms.service;

import com.cxria.sms.module.User;

import java.util.List;
import java.util.Optional;

public interface UserService {

    List<User> list() throws ServiceException;

    Optional<User> getUser(String id) throws ServiceException;

    void addUser(User user) throws ServiceException;

    void updateUser(User user) throws ServiceException;

    void deleteUser(String id) throws ServiceException;

}
